<style>
	#content .title-form{
		width:100%;
		font-size:1.4em;
		font-weight:bold;	
		margin:0px 0px 15px 0px;
}
	
	#content form{
		width:230%;
}
	#content form textarea{
		
}
	#content form .title-row{
		float:left;
		font-size:1em;
		width:25%;
}
	#content form select{
		boder:1px solid #ababab;
}

</style>	
	<?php $data= $this->data; $all_institutes= $this->all_institutes;
	 ?>

	
			
	<div id="content">
 	 	<?php 
		if($this->success){
		?>
			<div class="notification success" >
				<span class="strong" style="color:red;">Chỉnh sửa thành công.</span>
				<span class="close" title="Dismiss"></span>
			</div>
			<?php
		}
		
		if($this->warning){
			?>
				<div class="notification warning" >
					<span class="strong" style="color:red;">Dữ liệu bạn nhập còn thiếu. Xin vui lòng kiểm tra lại!</span>
					<span class="close" title="Dismiss"></span>
				</div>
				<?php
			}
	?>
     	<section class="grid_9" id="dashtabs" style="width:98%;min-height:400px;">	
			<div id="contact_form">
				<p class="title-form">Chỉnh sửa thông tin tài khoản</p>
               <form method="post" name="contact" action="" enctype="multipart/form-data">
                    <input type="text" value="<?php echo $data[0]['id'] ?>" name="id" style="display: none;" />
                    <label for="author" class="title-row">Họ tên:</label> <input class="required input_field" style="width:250px;"  readonly="readonly"  type="text" name="name" value="<?php echo $data[0]['name']; ?>"  />
                    <div class="cleaner h10"></div>
						
                    <label for="email" class="title-row">Ngày sinh:</label> <input class="required input_field" style="width:250px;"  readonly="readonly"  type="text" name="birthday" value="<?php echo $data[0]['birthday'] ?>" />
                    <div class="cleaner h10"></div>
                    <p class='row-form'>
			          <label class='title-row' for="City">Khoa/Viện <span class="required">*</span>:</label>
			           <select style="boder:1px solid #ababab;" name="institutes">
			                <?php  
			                    
			                    foreach($all_institutes as $item){ ?>
			                        <?php if($item['id']==$data[0]['id_institutes']){
			                        		?>
			                        		<option  value="<?php echo $item['id'] ?>" ><?php echo $item['name']; ?></option>   
			                        		<?php
			                        		}
			                         ?>
			                		<?php } ?>
			          </select>
			        </p>
                    <label for="subject" class="title-row">Email:</label> <input class="required input_field" style="width:250px;"  type="text" name="email" value="<?php echo $data[0]['email'] ?>"  />
                    <div class="cleaner h10"></div>
                    
        			<label for="subject" class="title-row">Phone:</label> <input class="required input_field" style="width:250px;"  type="text" name="phone" value="<?php echo $data[0]['phone'] ?>"  />
                    <div class="cleaner h10"></div>
                    
                    <label for="subject" class="title-row">Tên tài khoản: </label> <input class="required input_field" style="width:250px;"  type="text" name="username" value='<?php echo $data[0]['username'] ?>' />
                    <div class="cleaner h10"></div>
                    
                    <label for="subject" class="title-row">Mật khẩu:</label> <input class="required input_field" style="width:250px;"  type="text" name="password" value="<?php echo base64_decode($data[0]['password']) ?>" />
                    <div class="cleaner h10"></div>
                   
 					
					<input style="background:#68AAEE;margin-left:30px;" type="submit" value="Đồng ý" id="submit" name="submit" class="submit_btn float_l" />
					<a href="<?php echo DOMAIN_INDEX."/index/index" ?>"><input style="background:#68AAEE;margin-left:10px;" type="button" value="Hủy bỏ" id="submit" name="submit" class="submit_btn float_l" /></a>
					
                </form>
            </div>
        </section>
    </div>